<%--
  Created by IntelliJ IDEA.
  User: yangtao
  Date: 2021-12-06
  Time: 22:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<style>
    .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,.8);
        z-index: 1;
    }
</style>
<div id="overlay" class="overlay" style="display: none">
    <div class="m-loader m-4">
        <svg class="m-circular" viewBox="25 25 50 50">
            <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10"/>
        </svg>
    </div>
    <h3 class="l-text">Loading</h3>
</div>

<table class="table  table-hover table-toolbar table-bordered table-striped ">
    <thead>
    <tr>
        <th> 序号</th>
        <th>项目名称</th>
        <th>项目类型</th>
        <th>开始/申请时间</th>
        <th>奖励等级</th>
        <th>发布/发表等级</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${projectPage.content}" var="project" varStatus="vst">
        <tr>
            <td>${vst.count}</td>
            <td>${project.itemName}</td>
            <td>${project.techTypeEntity.name}</td>
            <td>${project.itemStartDate}</td>
            <td>${project.itemRewardClass}</td>
            <td>${project.itemPublishClass}</td>
            <td>
                <a href="javascript:toUpdateProject(${project.pkId});"><i class="glyphicon glyphicon-edit"></i> 修改&nbsp;</a>
                <a href="javascript:deleteProject(${project.pkId});"><i class="glyphicon glyphicon-trash"></i>
                    删除&nbsp;</a>
            </td>
        </tr>
    </c:forEach>


    </tbody>
</table>
<c:set var="page" value="${projectPage}"/>
<%@ include file="/WEB-INF/pages/_pagination.jsp" %>
